<template>
  <div>
    <!-- 子组件 复用-->
    <!-- 父组件 -->
    <router-view></router-view>
    <moR :title="title"></moR>
    <moR :xuanran="xuanran"></moR>
  </div>
</template>
<script>
import mor1 from "./8-19mor(1).vue";
import axios from 'axios'
export default {
  components: {
    //声明使用的组件
    moR: mor1,
  },
  data() {
    return {
      title: "可以",
      xuanran:''
    }
  },
  mounted(){
      axios.get("https://api.it120.cc/small4/shop/goods/category/all").then(res=>{
        this.xuanran = res.data.data
      })
  }
};
</script>
<style >
</style>